Interview Questions and Answer
Options:
a. Output stream
b. Input stream
c. Both a & b
d. None of the above
Reveal Answer
Options:
a. ifstream
b. istream
c. fstream
d. ostream
e. ostream
f. streambuf
g. ofstream
Reveal Answer
Options:
a. ifstream
b. ofstream
c. fstream
d. both a & c
Reveal Answer
Options:
a. Overloaded insertion operator
b. Overloaded extraction operator
c. Scope resolution operator
d. None of the above
Reveal Answer
Options:
a. A character
b. A string
c. Can be any data type
d. Integer
Reveal Answer
Options:
a. Printing output to the screen or printer
b. Graphics or word processing documents
c. Reading mouse-input
d. Receiving input from the keyboard
e. Reading & writing to the modem
f. Embedded software
Reveal Answer
Options:
a. Binary file
b. Text file
c. Both a & b
d. None of the above
Reveal Answer
Options:
a. iostream.h
b. string.h
c. sstring.h
d. fstream.h
Reveal Answer
Options:
a. ofstream.h
b. fstream.h
c. ifstream.h
d. istream.h
Reveal Answer
Options:
a. ios :: out
b. ios :: nocreate
c. ios :: app
d. ios :: ate
Reveal Answer
Options:
a. >> operator
b. << operator
c. || operator
d. | operator
Reveal Answer
Options:
a. At the beginning of the file
b. Anywhere in the file
c. At the end of the file
d. Middle of the file
Reveal Answer
Options:
a. At the end of the file while reading
b. If an invalid operation is attempted
c. When an input or output operation has failed.
d. If the file is not good
Reveal Answer
Options:
a. clrscr()
b. clear()
c. clr()
d. reset()
Reveal Answer
Bestdotnet google plus